package org.jeecg.modules.wmhb.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
//import org.jeecg.modules.wmhb.vo.WmProjectStatisticVo;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * @Description: 项目表
 * @Author: jeecg-boot
 * @Date:   2024-09-02
 * @Version: V1.0
 */
@Data
@TableName("wm_project")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description="项目表")
public class WmProject implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private java.lang.String id;
	/**创建人*/
    @Schema(description = "创建人")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @Schema(description = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @Schema(description = "所属部门")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    private java.lang.String sysOrgCode;
	/**租户*/
	@Excel(name = "租户", width = 15)
    @Schema(description = "租户")
    private java.lang.String tenantId;
	/**项目名称*/
	@Excel(name = "项目名称", width = 15)
    @NotBlank(message = "项目名称不能为空")
    @Schema(description = "项目名称")
    private java.lang.String name;
	/**项目编码*/
	@Excel(name = "项目编码", width = 15)
    @Schema(description = "项目编码")
    private java.lang.String code;
	/**负责人*/
	@Excel(name = "负责人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "id")
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "id")
    @Schema(description = "负责人")
    private java.lang.String chargeBy;
	/**进度*/
	@Excel(name = "进度", width = 15)
    @Schema(description = "进度")
    private java.lang.String progress;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "project_status")
	@Dict(dicCode = "project_status")
    @Schema(description = "状态")
    private java.lang.String status;
	/**计划开始时间*/
	@Excel(name = "计划开始时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "计划开始时间")
    private java.util.Date planBeginTime;
	/**计划完成时间*/
	@Excel(name = "计划完成时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "计划完成时间")
    private java.util.Date planEndTime;
	/**实际开始时间*/
	@Excel(name = "实际开始时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "实际开始时间")
    private java.util.Date factBeginTime;
	/**实际完成时间*/
	@Excel(name = "实际完成时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "实际完成时间")
    private java.util.Date factEndTime;
	/**项目地址*/
	@Excel(name = "项目地址", width = 15)
    @Schema(description = "项目地址")
    private java.lang.String address;
	/**项目类型*/
	@Excel(name = "项目类型", width = 15, dicCode = "project_type")
	@Dict(dicCode = "project_type")
    @Schema(description = "项目类型")
    private java.lang.String type;
	/**联系方式*/
	@Excel(name = "联系方式", width = 15)
    @Schema(description = "联系方式")
    private java.lang.String phone;
	/**附件*/
	@Excel(name = "附件", width = 15)
    @Schema(description = "附件")
    private java.lang.String file;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @Schema(description = "备注")
    private java.lang.String remark;
	/**删除者*/
	@Excel(name = "删除者", width = 15)
    @Schema(description = "删除者")
    private java.lang.String deleteBy;
	/**删除时间*/
	@Excel(name = "删除时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "删除时间")
    private java.util.Date deleteTime;
    /**项目统计*/
//    @TableField(exist = false)
//    private WmProjectStatisticVo projectStatisticVo;

    /**合同列表*/
    @TableField(exist = false)
    private List<WmContract> contractList;
}
